import $axios from './index.js'

// 数据列表
function recycleList(data) {
  const url = '/recycleBin/index'
  return $axios.get(url, data)
}
// 数据清空
function recycleClean(data) {
  const url = '/recycleBin/clean'
  return $axios.post(url, data)
}
// 数据删除
function recycledel(data) {
  const url = '/recycleBin/delete'
  return $axios.post(url, data)
}
// 单条数据恢复
function recycleRestore(data) {
  const url = '/recycleBin/restore'
  return $axios.post(url, data)
}
// 多条数据恢复
function recycleRestoreAll(data) {
  const url = '/recycleBin/allRestore'
  return $axios.get(url, data)
}
export default {
  recycleList,
  recycleClean,
  recycledel,
  recycleRestore,
  recycleRestoreAll
}
